@extends('backend.layouts.main-iframe')
@section('content')
<div class="col-md-12">
    <div class="box box-primary">
        <form method="POST" action="{{URL('admin/permission/permissionsCreate')}}">
            {{ csrf_field() }}
            <div class="box-body">
                <div class="form-group">
                    <label for="inputWarning">权限名称</label>
                    <input type="text" class="form-control" name="permissions_name" placeholder="请输入权限名称" value="{{ old('permissions_name')}}">
                    @if ($errors->has('permissions_name'))
                    <span class="help-block">
                        <strong style="color: #a94442;">{{ $errors->first('permissions_name') }}</strong>
                    </span>
                    @endif
                </div>
                <div class="form-group">
                    <label>请求方式</label>
                    <select class="form-control" name="menth">
                        <option value="GET">GET</option>
                        <option value="POST">POST</option>
                        <option value="PUT">PUT</option>
                        <option value="DELETE">DELETE</option>
                        <option value="OPTIONS">OPTIONS</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="inputWarning">{{$permissionsData['permissions_name']}}</label>
                    <input type="text" class="form-control" name="urls" placeholder="例如 admin/index" value="{{ old('urls')}}">
                    @if ($errors->has('urls'))
                    <span class="help-block">
                        <strong style="color: #a94442;">{{ $errors->first('urls') }}</strong>
                    </span>
                    @endif
                </div>
                <input type="hidden" class="form-control" name="permissionsId" value="{{$permissionsData['id']}}">
            </div>
            <div class="box-footer">
                <button type="submit" class="btn btn-primary">提交</button>
            </div>
        </form>
    </div>
</div>
@endsection